class MyItem extends eui.ItemRenderer{
	public fightBtn:eui.Button;
	public titleTxt:eui.Label;
	public timeTxt:eui.Label;
	public iconImg:eui.Image;
	public constructor() {
		super();
		this.skinName="MyItemRender";
	}
	protected childrenCreated(){
		super.childrenCreated();
		this.fightBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onclick,this);
	}
	private onclick(e:egret.TouchEvent){
		if(this.data){
			alert("我点击了"+this.data.title);
		}
	}
	
}